<%@ page language="java" pageEncoding="UTF-8"%>
<% 
String fileName = request.getParameter("fileName");
if(fileName == null || "".equals(fileName)){
fileName = "export";
}
fileName = new String(fileName.getBytes("GB2312"), "ISO8859-1");
response.setHeader("Content-Type","application/force-download");
response.setHeader("Content-Type","application/vnd.ms-excel");
response.setHeader("Content-Disposition","attachment;filename="+fileName+".xls");
out.print(request.getParameter("exportContent")); 
%> 